import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'
import '@/mock/mockServer.js'

// 轮播图 swiper css 样式
import "swiper/css/swiper.css";
// import '../node_modules/swiper/css/swiper.css'

// TypeNav组件
import TypeNav from '@/components/typeNav/TypeNav.vue'
Vue.component('TypeNav',TypeNav)
// 轮播图组件
import Carousel from '@/components/carousel/Carousel.vue'
Vue.component('carousel',Carousel)

// 事件总线
// Vue.prototype.$EventBus = new Vue()

Vue.config.productionTip = false
new Vue({
  router,
  store,
  beforeCreate(){
    Vue.prototype.$Bus = this
  },
  render: h => h(App),
}).$mount('#app')
